/**
 *
 * 匿名内部类写法
 *
 * @Author czl
 * @Date 2024-04-09
 */
public class MainTest01 {
    public static void main(String[] args) {
      new IWenHou() {
           @Override
           public void wenHou(String name) {
               System.out.println("嘿 ! " + name);
           }
       }.wenHou("大傻椿");


    }
}
